package models;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 基本model
 *
 * @author tangweiqun 2014/10/22
 */
@Entity
@Table(name = "F_BASIC_ACCOUNT")
public class BaseAccount extends IdEntity {
    private static final long serialVersionUID = 549140805904750947L;

    @Column(name = "CUST_ID")
    private String custId;
    @Column(name = "ACCOUNT_NO")
    private String baseAccountNo;
    @Column(name = "STATUS")
    private String status;
    @Column(name = "BALANCE")
    private BigDecimal balance;
    @Column(name = "TRADE_PASSWORD")
    private String tradePassword;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "CREATE_TIME")
    private Date createTime;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "DELETE_TIME")
    private Date deleteTime;

    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    public String getBaseAccountNo() {
        return baseAccountNo;
    }

    public void setBaseAccountNo(String baseAccountNo) {
        this.baseAccountNo = baseAccountNo;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getTradePassword() {
        return tradePassword;
    }

    public void setTradePassword(String tradePassword) {
        this.tradePassword = tradePassword;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

}
